#include"vector.h"
#include"list.h"
//using namespace std;
namespace CW
{

	void test_list()
	{

		List<int> lt;
		for (int i = 1; i < 5; i++)
		{
			lt.push_back(i);
		}

		CW::List<int>::reverse_iterator rit = lt.rbegin();
		while (rit != lt.rend())
		{
			cout << *rit << " ";
			++rit;
		}
		cout << endl;


		CW::vector<int> v;
		for (int i = 1; i < 5; i++)
		{
			v.push_back(i);
		}

		CW::vector<int>::reverse_iterator rit2 = v.rbegin();
		while (rit2 != v.rend())
		{
			cout << *rit2 << " ";
			++rit2;
		}
		cout << endl;

		CW::vector<int> v1 = { 1,2,3,4 };
		CW::vector<int>::reverse_iterator rit3 = v.rbegin();
		while (rit3 != v.rend())
		{
			cout << *rit3 << " ";
			++rit3;
		}
		cout << endl;

	}

}

int main()
{
	CW::test_list();
	return 0;
}